<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{{ .title }}</title>
    <link rel='stylesheet prefetch' href='https://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.css'>
    <link rel="stylesheet" href="/static/css/style.css">
</head>

<body>
<div class="wrapper">
    <form class="form-signin" action="/admin/login" method="post">
        <h2 class="form-signin-heading">管理后台</h2>
        <input type="text" class="form-control" name="username" placeholder="用户名" required="" autofocus=""/>
        <input type="password" class="form-control" name="password" placeholder="密码" required=""/>
        <label class="checkbox">
            <input type="checkbox" value="remember-me" id="rememberMe" name="记住我"> 记住我
        </label>
        <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
    </form>
</div>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
    var obj = {
        'a': 'a',
        'b': null,
        'c': new Date(),
        'd': '中文'
    }
    $.ajax({
        type: "get",
        url: "/admin/jsonget",
        data: obj,
        success: function (msg) {
            console.log(msg);
        }
    });

    $.ajax({
        type: "post",
        url: "/admin/jsonpost",
        data: obj,
        success: function (msg) {
            console.log(msg);
        }
    });
</script>
</body>
</html>
